package com.base.pub.persistence.tenant;

import org.hibernate.context.spi.CurrentTenantIdentifierResolver;

import com.base.pub.persistence.SubjectContext;

public class CurrentTenantResolver implements CurrentTenantIdentifierResolver {

	@Override
	public String resolveCurrentTenantIdentifier() {
		return SubjectContext.getCurrentTenantId();
	}

	@Override
	public boolean validateExistingCurrentSessions() {
		return true;
	}

}
